Skip to content

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Jul 15, 2025

Also allow later eland versions.

The previous requirements.txt didn't specify elasticsearch as a dependency. Though parts of the project do use and require it.
At the same time, an eland requirement was specified, which mean a compatible elasticsearch version was available.
This was most likely because some time ago (before Feburary 20 2023; medct v1.7.0) medcat itself declared an elasticsearch dependency and working_with_cogstack was probably trying to work with the version that the library supported.

This PR explicitly states the elasticsearch dependency.
Though I've allowed for a more wide range than before, on both elasticsearch and eland.

This is (currently) set to ES8 because (as far as I know) some sites still use ES8 (e.g KCH), while other sites use ES9 (GSTT).

PS:
I am not fully sure whether this setup would work for both ES8 and ES9. But I've left it at v8 for now.

PPS:
Currently, none of the ES-specific stuff is automatically tested (as far as I know). So it's hard to tell what does and doesn't work. Adding automated tests for this is on the roadmap, but is waiting on a few other things to happen first.

@mart-r
Copy link
Collaborator Author

mart-r commented Aug 4, 2025

@vladd-bit Do you think ES8 or ES9 dependency makes sense for this?

@vladd-bit
Copy link
Member

yeah it def does. maybe it would be good to use the native lib instead of relying on eland for the ES query logic and so on, and just have some wrappers.

@mart-r mart-r merged commit 92c9f06 into main Aug 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants